#ifndef __HMC5883_H
#define __HMC5883_H

#include "mc31xx_hal.h"

#define 	HMC5883_I2C_ADDR		(0x3C)

void HMC5883_init(void);
void HMC5883_i2c_write(u8 uWriteAddress, u8* buf, u8 len);
u8 HMC5883_i2c_read(u8 uReadAddress, u8* buf, u8 len);

#endif